package com.zcc.makingfriend.service.impl;

import com.zcc.makingfriend.dao.WxLogin;
import com.zcc.makingfriend.mapper.WxLoginMapper;
import com.zcc.makingfriend.service.WxLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author zcc
 */
@Service
public class WxLoginServiceImpl implements WxLoginService {
    @Autowired
    WxLoginMapper wxLoginMapper;

    @Override
    public int addWxLogin(WxLogin wxLogin) {
        int i = wxLoginMapper.addWxLogin(wxLogin);
        return i;
    }

    @Override
    public int deleteWxLogin(String uuid) {
        int i = wxLoginMapper.deleteWxLogin(uuid);
        return i;
    }

    @Override
    public WxLogin findWxLogin(String openid) {
        WxLogin wxLogin = wxLoginMapper.findWxLogin(openid);
        return wxLogin;
    }
}
